<style>
	.text{
		color: #000;
	}
</style>
<h2 class="title"><span>THÀNH VIÊN : <?php echo $user_item->username ?></span></h2>
<div class="col-md-3">
	<a class="" href="<?php echo base_url()."thanh-vien/".$user_item->slug."-".$user_item->id?>"><?php if($user_item->image != NULL) { ?>
		<img class="img-thumbnail" src="<?php echo base_url()."assets/images/avatar/".$user_item->image; ?>" alt="<?php echo $user_item->username; ?>" />
		<?php } else { ?>
		<img class="img-thumbnail" src="<?php echo base_url() ?>assets/images/no-avatar.jpg" alt="<?php echo $user_item->username; ?>" />
		<?php } ?>
	</a>
</div>
<div class="col-md-5">
	<div class="profile-detail-info">
		<form class="form-horizontal" method="post" action="<?php echo base_url()."thanh-vien/tai-khoan"; ?>" enctype="multipart/form-data">
			<h3><?php echo $user_item->username ?></h3>
			<div class="form-group">
				<label for="inputSkill" class="col-sm-3 control-label">Skill: </label>
				<div class="col-sm-9">
					<input type="text" class="form-control" name="inputSkill" id="inputSkill" placeholder="Skill" value="<?php echo $user_item->skill ?>">
				</div>
			</div>
			<div class="form-group">
				<label for="inputTel" class="col-sm-3 control-label">Tel/Viber: </label>
				<div class="col-sm-9">
					<input type="text" class="form-control" name="inputTel" id="inputTel" placeholder="Tel/Viber" value="<?php echo $user_item->tel_viber ?>">
				</div>
			</div>
			<div class="form-group">
				<label for="inputEmail" class="col-sm-3 control-label">Email: </label>
				<div class="col-sm-9">
					<input type="email" disabled="disabled" class="form-control" name="inputEmail" id="inputEmail" placeholder="Email" value="<?php echo $user_item->email ?>">
				</div>
			</div>
			<div class="form-group">
				<label for="inputFacebook" class="col-sm-3 control-label">Facebook: </label>
				<div class="col-sm-9">
					<input type="text" class="form-control" name="inputFacebook" id="inputFacebook" placeholder="Facebook link" value="<?php echo $user_item->facebook ?>">
				</div>
			</div>
			<div class="form-group">
				<label for="inputCity" class="col-sm-3 control-label">City: </label>
				<div class="col-sm-9">
					<select name="cmbCity" id="cmbCity" class="cmb" data-container="body" data-width="100%">
						<?php 
						foreach ($cityItems as $item) { 
							if($item->id == $user_item->city_id) {
								?>
								<option selected="selected" value="<?php echo $item->id; ?>"><?php echo $item->name; ?></option>
								<?php } else { ?>
								<option value="<?php echo $item->id; ?>"><?php echo $item->name; ?></option>
								<?php 
							}
						} 
						?>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="inputNoidung" class="col-sm-3 control-label">Nội dung: </label>
				<div class="col-sm-9">
					<textarea class="form-control" id="inputNoidung" name="inputNoidung" rows="4">
						<?php echo $user_item->content ?>
					</textarea>
				</div>
			</div>
			<div class="form-group">
				<label for="image" class="col-sm-3 control-label">Ảnh đại diện: </label>
				<div class="col-sm-9">
					<input type="file" class="form-control" name="image" id="image">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-3 col-sm-9">
					<input type="submit" name="updateMember" id="updateMember" class="btn btn-default" value="Cập nhật">
				</div>
			</div>
		</form>
		<script>			
			CKEDITOR.replaceAll(function( textarea, config )
			{
				config.toolbar = 'Standard';
			});
		</script>
	</div>
</div>
<div class="col-md-4" id="calendarMember">
	<?php echo $this->load->view('partials/calendar-member') ?>
</div>
<script>
	//select box
	$('.cmb').selectpicker();
	if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
		$('.cmb').selectpicker('mobile');
	}
</script>